package client.service;

import java.util.HashMap;

public class SocketThreadManager {
    private static HashMap<String,UserThread> users=new HashMap<>();

    public static void addUserThread(String userName,UserThread userThread){
        users.put(userName,userThread);
    }
    public static UserThread getUserThread(String userName){
        return users.get(userName);
    }

    public static void removeUserThread(String userName){
        users.remove(userName);
    }
}
